function register() {
	alert("欢迎注册");
	var username = document.querySelector('input[name="username"]').value;
	var password = document.querySelector('input[name="password"]').value;
	var idNumber = document.querySelector('input[name="idNumber"]').value;
	var phone = document.querySelector('input[name="phone"]').value;
	var address = document.querySelector('input[name="address"]').value;
	var postalCode = document.querySelector('input[name="postalCode"]').value;
	var agreeToTerms = document.querySelector('input[name="rem_u"]:checked');

	if (username.length < 6) {
		alert('用户名要求不低于6个字符');
		return false;
	}

	if (password.length < 6) {
		alert('密码要求不低于6个字符');
		return false;
	}

	if (!idNumber) {
		alert('身份证号必填');
		return false;
	}

	if (!phone) {
		alert('电话号码必填');
		return false;
	}

	if (!address) {
		alert('住址必填');
		return false;
	}

	if (!postalCode) {
		alert('邮政编码必填');
		return false;
	}

	if (!agreeToTerms) {
		alert('请同意服务条款');
		return false;
	}

	$.ajax({
		url:"",
		type:"post",
		data:{

		},
		success:function (response){
			alert(response);
		}
	})


}
